using Tycho.Compiler;
namespace Tycho.Runtime {
    public interface IModuleLoader {
        Namespace BaseNamespace { get; }
        AnyObject LoadModule (Namespace ns, IModuleScopeLoader moduleLoader);
    }

    public class ImmediateModuleLoader : IModuleLoader {
        private AnyObject Module;
        public Namespace BaseNamespace { get; private set; }

        public ImmediateModuleLoader (Namespace ns, AnyObject module) {
            BaseNamespace = ns;
            Module = module;
        }

        public AnyObject LoadModule (Namespace ns, IModuleScopeLoader moduleLoader) {
            return Module;
        }
    }
}